package com.crm.service.opportunityManager;


import com.crm.model.entity.customerManager.Competitor;
import com.crm.model.entity.customerManager.DemandResearch;

import java.util.List;

/**
 * 竞品分析
 */
public interface CompetitorDbService {

    /**
     * 商机-商机详情-竞品分析
     * @param opportunityId 商机id
     * @param order 分组数据
     * @return
     */
    List<Competitor> competitorList(String opportunityId, String order);

    /**
     * 商机-商机详情-修改竞品分析
     * @param competitorId 竞品分析id
     * @return
     */
    Competitor getCompetitorById(String competitorId);

    /**
     * 商机详情-修改竞品分析
     * @param competitor 竞品分析实体
     * @return
     */
    Boolean updateCompetitor(Competitor competitor);
}
